# _*_ coding utf-8 _*_
# george
# time: 2025/1/16下午1:59
# name: role.py
# comment:
from sqlalchemy import Table, Select
from common.database import db_connection

db_session, Base, engine = db_connection()
import app.config.config
import logging

role_logger = logging.getLogger("role database log")


class Role(Base):
    __table__ = Table("role", Base.metadata, autoload_with=engine)

    def search_role(self):
        result = db_session.query(Role).all()
        return result
